<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Search</title>
<meta http-equiv="Content-Type" content="text/html;" />
<link href="css/screen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//<![CDATA[
           
	function adjustHeight() { if (parent == window) return; else parent.setIframeHeight('ifrm'); }
	
	function searchToggle() { if (parent == window) return; else parent.searchToggle(); }

	function searchAdvanced() {
		if (parent == window) return;
		var qry = '';
		if (document.getElementById('search2.name').value!='') {
		        qry = qry + '+name:(' + document.getElementById('search2.name').value + ')';
		}
		if (document.getElementById('search2.country').value!='') {
	        	qry = qry + '+country:(' + document.getElementById('search2.country').value + ')';
		}
		if (document.getElementById('search2.city').value!='') {
    			qry = qry + '+city:(' + document.getElementById('search2.city').value + ')';
		}		
		
		if (qry!='') {
			parent.doSearch(qry);
		} else {
			alert("At least one search field should be filled.");
		}
        return false;
	}
//]]>
</script>
</head>

<body onload="adjustHeight()">
<div id="caldiv1"
	style="position: absolute; visibility: hidden; background-color: white; "></div>
<h3>Advanced Search</h3>
<table>
	<tbody>		
		<tr>
			<td>Hotel Name</td>
			<td><input id="search2.name" type="text" /></td>
		</tr>
		<tr>
			<td>Hotel Country</td>
			<td><input id="search2.country" type="text" /></td>
		</tr>
		<tr>
			<td>Hotel City</td>
			<td><input id="search2.city" type="text" /></td>
		</tr>		
	</tbody>
</table>
<p><input type="button" onclick="searchAdvanced(); return false"
	value="Search" /> <a href="#" onclick="searchToggle(); return false">Close</a></p>

</body>
</html>
